package ooDay03;

public class LambdaDemo {
    public static void main(String[] args) {
        Radia radia = new Radia(){
            public double radia(double r){
                return 3.14*r*r;
            }
        };

        double x =radia.radia(3.0);
        System.out.println(x);

        Radia radia1 = r-> 3.14*r*r;



    }
}


interface Radia{
    double radia(double r);
}